package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
/**
 * 收藏
 */
public class Favorites extends BaseDomain{
    //日报id
    private Integer dailyId;
    //游记id
    private Integer travelId;
    //攻略id
    private Integer strategyId;
    //用户id
    private Integer userId;
    //收藏时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    private Date favoritesTime;
    //用户
    private User user;
    //攻略
    private Strategy strategy;
    //攻略内容
    private StrategyContent strategyContent;
    //游记
    private Travel travel;
    //游记内容
    private Travelcontent travelcontent;
    //日报
    private Daily daily;
    //日报内容
    private DailyContent dailyContent;
}